import { onBeforeUnmount, onMounted } from 'vue'
import { useStore } from 'vuex'
export default function() {
  const store = useStore()
  onMounted(() => {
    store.commit('TabBarHide')
  })
  onBeforeUnmount(() => {
    store.commit('TabBarShow')
  })
}
